Skip to content

Conversation

@bethnull
Copy link

@bethnull bethnull commented Sep 5, 2016

Comparing this.node.network against Networks.livenet and Networks.testnet works when the bitcore node is using the livenet and testnet networks, however when using the regtest network the extra field regTestEnabled present in this.node.network makes comparing it with Networks.testnet to fail.

this.node.network:

Network {
name: 'testnet',
alias: 'regtest',
pubkeyhash: 111,
privatekey: 239,
scripthash: 196,
xpubkey: 70617039,
xprivkey: 70615956,
port: [Getter],
networkMagic: [Getter],
dnsSeeds: [Getter],
regtestEnabled: true }

Networks.testnet:

Network {
name: 'testnet',
alias: 'regtest',
pubkeyhash: 111,
privatekey: 239,
scripthash: 196,
xpubkey: 70617039,
xprivkey: 70615956,
port: [Getter],
networkMagic: [Getter],
dnsSeeds: [Getter] }

Comparing this.node.network against Networks.livenet and Networks.testnet works when the bitcore node is using the livenet and testnet networks, however when using the regtest network the extra field regTestEnabled present in this.node.network makes comparing it with Networks.testnet to fail.

this.node.network:

Network {
name: 'testnet',
alias: 'regtest',
pubkeyhash: 111,
privatekey: 239,
scripthash: 196,
xpubkey: 70617039,
xprivkey: 70615956,
port: [Getter],
networkMagic: [Getter],
dnsSeeds: [Getter],
regtestEnabled: true }

Networks.testnet:

Network {
name: 'testnet',
alias: 'regtest',
pubkeyhash: 111,
privatekey: 239,
scripthash: 196,
xpubkey: 70617039,
xprivkey: 70615956,
port: [Getter],
networkMagic: [Getter],
dnsSeeds: [Getter] }
app, BrowserWindow and crash-reporter are now fetched via require('electron').app and require('electron').BrowserWindow and require('electron').crashReporter respectively.

crashReporter also needs a config object in its start method.
@bethnull bethnull changed the title Fixed _setDataPath when the bitcore node is using the regtest network. Fixed _setDataPath when the bitcore node is using the regtest network and some bugs related with newer electron versions. Sep 5, 2016
Copy link

@rdev66 rdev66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did the same changes to main.js in order for the app. to run with newer versions of Electron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants